package com.noble.imui.messagelist.commons;


import android.widget.ImageView;

public interface ImageLoader {

    /**
     * Load image into avatar's ImageView.
     *
     * @param avatarImageView Avatar's ImageView.
     * @param string          A file path, or a uri or url.
     */
    void loadAvatarImage(ImageView avatarImageView, String string);

    /**
     * Load image into image message's ImageView.
     *
     * @param imageView Image message's ImageView.
     * @param string    A file path, or a uri or url.
     */
    void loadImage(ImageView imageView, String string);

    /**
     * Load video to video message's image cover.
     *
     * @param imageCover 缩略图
     * @param thumbPic   缩略图
     * @param uri        视频文件地址
     */
    void loadVideo(ImageView imageCover,String thumbPic, String uri);
}
